package com.learning.server;

import com.rpcLearning.server.RPCServer;
import com.rpcLearning.server.RPCServerConfig;

/**
 * @author:zyh
 * @Time:2021-03-17-21:48
 * @email:1269231889@qq.com
 */
public class Servicor {
    public static void main(String[] args) {
        RPCServer rpcServer = new RPCServer(new RPCServerConfig());
        rpcServer.register(CalcService.class,new CalcServiceImpl());

        rpcServer.start();
    }
}
